package com.qyhl.webtv.module_circle.circle.msg.action;


import com.qyhl.webtv.commonlib.entity.circle.InteractionMessageBean;

import java.util.List;

/**
 * Created by helin on 2018/1/26.
 */
public class InteractionPresenter implements InteractionContract.InteractionPresenter{

    private final InteractionContract.InteractionView view;
    private final InteractionModel model;

    InteractionPresenter(InteractionContract.InteractionView view){
        this.view =view;
        this.model = new InteractionModel(this);

    }

    @Override
    public void getMessageError() {
        view.getMessageError();
    }

    @Override
    public void getMessageSuccess(List<InteractionMessageBean> data, int type) {
        view.getMessageSuccess(data,type);
    }

    @Override
    public void getInteractionMessage(int lastId, int type) {
        model.getInteractionMessage(lastId,type);
    }

    @Override
    public void clearMessageTip(int msgId) {
        model.clearMessageTip(msgId);
    }
}
